home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mntlib44.zoo / mntlib / sgtty.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-17  |  252 b   |  22 lines

  1. /*
  2.  * Written by Eric R. Smith for the Atari ST
  3.  */
  4.  
  5. #include <ioctl.h>
  6.  
  7. int
  8. stty(fd, _tty)
  9.     int fd;
  10.     struct sgttyb *_tty;
  11. {
  12.     return ioctl(fd, TIOCSETP, _tty);
  13. }
  14.  
  15. int
  16. gtty(fd, _tty)
  17.     int fd;
  18.     struct sgttyb *_tty;
  19. {
  20.     return ioctl(fd, TIOCGETP, _tty);
  21. }
  22.